using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace Super
{
	public class SpriteExit : MonoBehaviour
	{
		public Action action;
		
		public void SetAction(Action action)
		{
			this.action = action;
		}
		
		private void OnMouseExit()
		{
			action?.Invoke();
		}
	}

}
